package osgi.list.practise.referenceBundle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import osgi.list.practise.commonInterface.CommonPluginInterface;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Richard
 * Date: 4/21/11
 * Time: 9:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class TestForTheListBundle implements InitializingBean , DisposableBean{
    private List<CommonPluginInterface> services;

    public void destroy() throws Exception {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void afterPropertiesSet() throws Exception {
        for(CommonPluginInterface service : services) {
            service.getName();
        }
    }

    public List<CommonPluginInterface> getServices() {
        return services;
    }

    public void setServices(List<CommonPluginInterface> services) {
        this.services = services;
    }
}
